package com.juyu.miliao.common.dataSource.tool;

import java.util.Arrays;

public class ArgsUtil {

    public static Object[] replaceArgs(Object[] args, Object source, Object target){
    	return Arrays.asList(args).stream()
    			.map(arg -> arg == source ? target : arg)
    			.toArray();
    }
	
}
